package com.tobeface.sns.application.blog.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tobeface.sns.application.blog.BlogCommentService;
import com.tobeface.sns.domain.blog.BlogComment;
import com.tobeface.sns.infrastructure.persist.blog.BlogCommentRepository;
	
/**
 * @author Linxiaosheng
 */
@Service
public class BlogCommentServiceImpl implements BlogCommentService {

	@Autowired
	private BlogCommentRepository blogCommentRepository;

	@Override
	public void create(BlogComment blogComment) {
		blogCommentRepository.create(blogComment);
	}

	@Override
	public void delete(String id) {
		blogCommentRepository.delete(id);

	}

	@Override
	public List<BlogComment> findCommentByBlogId(String id) {
		return blogCommentRepository.findCommentByBlogId(id);
	}

}
